package com.briup.web_demo2.mapper;

import com.briup.web_demo2.pojo.Student;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author Lenovo
* @description 针对表【jslg_student】的数据库操作Mapper
* @createDate 2024-09-24 19:17:41
* @Entity com.briup.web_demo2.pojo.Student
*/
public interface StudentMapper{
    void insertStudent(Student student);

    void deleteStudentById(Integer id);

    void updateStudentById(Student student);

    Student selectStudentById(String id);

    List<Student> getBasePage(Integer pageNum, Integer pageSize);

    @Select("select count(*) from jslg_student")
    Integer selectTotal();

    @Select("select * from jslg_student")
    List<Student> selectAllStudent();

    List<Student> getStudentByCondition(Integer id, String name, Integer gender,
                                        LocalDateTime startTime, LocalDateTime endTime);
}




